package DAO.Book;


public class Books {
    //编号，品名，单价，上市日期，类别，产地。
    private String BoodsNum;//编号
    private String BoodsName;//书名
    private String BoodsPrice;//单价
    private String BoodsListingDate;//上市日期
    private String BoodsCategories;//类别
    private String Boodsmargin;//图书余量

    //构造方法
//无参构造
    public Books() {}
    //带参构造

    public Books(String boodsNum, String boodsName, String boodsPrice, String boodsListingDate, String boodsCategories, String boodsmargin) {
        BoodsNum = boodsNum;
        BoodsName = boodsName;
        BoodsPrice = boodsPrice;
        BoodsListingDate = boodsListingDate;
        BoodsCategories = boodsCategories;
        Boodsmargin = boodsmargin;
    }

    //Get&Set方法

    public String getBoodsNum() {
        return BoodsNum;
    }

    public void setBoodsNum(String boodsNum) {
        BoodsNum = boodsNum;
    }

    public String getBoodsName() {
        return BoodsName;
    }

    public void setBoodsName(String boodsName) {
        BoodsName = boodsName;
    }

    public String getBoodsPrice() {
        return BoodsPrice;
    }

    public void setBoodsPrice(String boodsPrice) {
        BoodsPrice = boodsPrice;
    }

    public String getBoodsListingDate() {
        return BoodsListingDate;
    }

    public void setBoodsListingDate(String boodsListingDate) {
        BoodsListingDate = boodsListingDate;
    }

    public String getBoodsCategories() {
        return BoodsCategories;
    }

    public void setBoodsCategories(String boodsCategories) {
        BoodsCategories = boodsCategories;
    }

    public String getBoodsmargin() {
        return Boodsmargin;
    }

    public void setBoodsmargin(String boodsmargin) {
        Boodsmargin = boodsmargin;
    }

    //重写toString用以调试
    @Override
    public String toString() {
        return "Books{" +
                "BoodsNum='" + BoodsNum + '\'' +
                ", BoodsName='" + BoodsName + '\'' +
                ", BoodsPrice='" + BoodsPrice + '\'' +
                ", BoodsListingDate='" + BoodsListingDate + '\'' +
                ", BoodsCategories='" + BoodsCategories + '\'' +
                ", Boodsmargin='" + Boodsmargin + '\'' +
                '}';
    }
}
